﻿/*Manu Navarro*/
using System;

namespace DamCommander
{
    class Footer
    {       
        protected int currentX;
        public Footer()
        {
            currentX = 1;
        }
 
        public void WriteHotKey(string text1, string text2)
        {
            const int y = 23;

            Console.SetCursorPosition(currentX, y);
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(text1);
                
            currentX += text1.Length + 1;
                
            Console.SetCursorPosition(currentX, y);
            Console.ForegroundColor = ConsoleColor.White;
            Console.Write(text2);

            currentX += text2.Length + 2;
        }

        public void Draw()
        {
            WriteHotKey("F1", "Help");
            WriteHotKey("F2", "Ren");
            WriteHotKey("F3", "View");
            WriteHotKey("F4", "Edit");
            WriteHotKey("F5", "Copy");
            WriteHotKey("F6", "Move");
            WriteHotKey("F7", "Mkdir");
            WriteHotKey("F8", "Del");
            WriteHotKey("F10", "Exit");

            currentX = 1;
        }
    }
}
